<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'automaticfiresuppression-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'TypeOfExtinguishingAgent'); ?>
		<?php echo $form->textField($model,'TypeOfExtinguishingAgent',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'TypeOfExtinguishingAgent'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'JockeyPumpCapacityHp'); ?>
		<?php echo $form->textField($model,'JockeyPumpCapacityHp'); ?>
		<?php echo $form->error($model,'JockeyPumpCapacityHp'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'JockeyPumpCapacityGpm'); ?>
		<?php echo $form->textField($model,'JockeyPumpCapacityGpm'); ?>
		<?php echo $form->error($model,'JockeyPumpCapacityGpm'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FirePumpCapacityHp'); ?>
		<?php echo $form->textField($model,'FirePumpCapacityHp'); ?>
		<?php echo $form->error($model,'FirePumpCapacityHp'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FirePumpCapacityGpm'); ?>
		<?php echo $form->textField($model,'FirePumpCapacityGpm'); ?>
		<?php echo $form->error($model,'FirePumpCapacityGpm'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TankCapacity'); ?>
		<?php echo $form->textField($model,'TankCapacity'); ?>
		<?php echo $form->error($model,'TankCapacity'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'MaintainingLinePressure'); ?>
		<?php echo $form->textField($model,'MaintainingLinePressure',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'MaintainingLinePressure'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FarthestSprinklerHeadPressure'); ?>
		<?php echo $form->textField($model,'FarthestSprinklerHeadPressure',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'FarthestSprinklerHeadPressure'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'RiserSize'); ?>
		<?php echo $form->textField($model,'RiserSize'); ?>
		<?php echo $form->error($model,'RiserSize'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TypeOfHeadsInstalled'); ?>
		<?php echo $form->textField($model,'TypeOfHeadsInstalled',array('size'=>60,'maxlength'=>60)); ?>
		<?php echo $form->error($model,'TypeOfHeadsInstalled'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NoOfHeads'); ?>
		<?php echo $form->textField($model,'NoOfHeads'); ?>
		<?php echo $form->error($model,'NoOfHeads'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Total'); ?>
		<?php echo $form->textField($model,'Total'); ?>
		<?php echo $form->error($model,'Total'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SpacingOfHeads'); ?>
		<?php echo $form->textField($model,'SpacingOfHeads',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'SpacingOfHeads'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LocationOfFireDepartmentConnection'); ?>
		<?php echo $form->textArea($model,'LocationOfFireDepartmentConnection',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'LocationOfFireDepartmentConnection'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DateLastTested'); ?>
		<?php echo $form->textField($model,'DateLastTested'); ?>
		<?php echo $form->error($model,'DateLastTested'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ConductedBy'); ?>
		<?php echo $form->textField($model,'ConductedBy',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'ConductedBy'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PlanSubmitted'); ?>
		<?php echo $form->textField($model,'PlanSubmitted',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'PlanSubmitted'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CertificationOfInstallation'); ?>
		<?php echo $form->textField($model,'CertificationOfInstallation',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'CertificationOfInstallation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Establishment_Id'); ?>
		<?php echo $form->textField($model,'Establishment_Id'); ?>
		<?php echo $form->error($model,'Establishment_Id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->